/*
 * Copyright (c) 2013 WDCY Information Technology Co. Ltd
 * www.wdcy.cc
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * WDCY Information Technology Co. Ltd ("Confidential Information").
 * You shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement you
 * entered into with WDCY Information Technology Co. Ltd.
 */
package com.andaily.service;

import com.andaily.domain.dto.application.ApplicationInstanceFormDto;
import com.andaily.domain.dto.application.ApplicationInstanceListDto;
import com.andaily.domain.dto.application.InstanceStatisticsDto;

/**
 * 15-1-3
 *
 * @author Shengzhao Li
 */

public interface ApplicationInstanceService {

    void loadApplicationInstanceListDto(ApplicationInstanceListDto listDto);

    ApplicationInstanceFormDto loadApplicationInstanceFormDto(String guid);

    void persistApplicationInstance(ApplicationInstanceFormDto formDto);

    boolean enableApplicationInstance(String guid);

    void executePerHeartBeatByInstanceGuid(String instanceGuid);

    boolean stopMonitoringApplicationInstance(String guid);

    boolean deleteApplicationInstance(String guid);

    InstanceStatisticsDto loadInstanceStatisticsDto(String guid);
}